{extend name="$_tpl_public_layout_ace"/}


{block name="breadcrumb"}
<ul class="breadcrumb">
	<li><i class="fa fa-home home-icon"></i><a href="{:url('manage/index/index')}">{:config('web_site_title')}</a></li>
	<li><a href="{:url('seatsel/manage/index')}">{:config('proj_name')}</a></li>
	<li><a href="{:url('seatsel_manage/slide/index')}">{$sideName}</a></li>
</ul>
{/block}


{block name="pageheader"}
<h1>
	{$sideName}
</h1>
{/block}


{block name="content"}
<form method="post" action="{:url('seatsel_manage/slide/doAdd')}" enctype="multipart/form-data" class="form-horizontal J_ajaxForm">
	<input type="hidden" name="id" value="{$id}" />

	<div class="form-group">
		<label class="col-sm-2 control-label">标题</label>
		<div class="col-sm-5">
			<input type="text" name="data[title]" value="{$info['title']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">链接</label>
		<div class="col-sm-5">
			<input type="text" name="data[link]" value="{$info['link']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">图片</label>
		<div class="col-sm-5">
			<div class="form-control-static">
				<input type="file" name="picurl" class="J_uploadfile" />
			</div>
			<div class="J_preview">
				<img src="{$info['picurl']}" class="cover-img" onerror="Javascript:this.src='/tplnew/public/images/blank.png';" />
			</div>
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">排序</label>
		<div class="col-sm-5">
			<input type="text" name="data[vieworder]" value="{$info['vieworder']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">状态</label>
		<div class="col-sm-5">
			<?php echo isOpenRadioHtmlB('data[status]', $info['status']); ?>
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="clearfix form-actions">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-primary btn-sm J_ajaxSubmit">保存修改</button>
		</div>
	</div>
</form>
{/block}


{block name="script"}
<!-- 上传图片展示 -->
<script type="text/javascript" src="__STATIC__/Zz22zzUI/addon/uploadPreview.js"></script>
{/block}